SftTree/NET 2.0

Pressed Property, HeadersClass Class

Softel vdm, Inc.

Returns the cell in the column header area that is currently pressed.

Syntax      HeadersClass Class (Softelvdm.SftTreeNET)

VB   

Public Property Pressed As CellClass

C#   

public CellClass Pressed { get; set; }

C++   

public: property CellClass^ Pressed {
        CellClass^ get();
        void set(CellClass^ value);
}

Property Value

The cell that is currently pressed or null/Nothing if no cell is pressed.

Comments

The Pressed property returns the cell in the column header area that is currently pressed.

Only one cell in the entire column header area can be pressed at any time.

Depending on the Behavior property, a cell that is clicked may automatically return to its released position. In this case, the Pressed property returns null/Nothing. The LastClicked, ClickedRow and ClickedColumn reflect the last pressed cell, even if it has returned to its released position.

Cells in the header area should be defined using a background appearance that reflects their use as a header or ybutton (CellBaseClass.Appearance). The default appearance for all headers can be defined using the AppearanceDefault property.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com